package com.ctl.test.po;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>Title: Teacher</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2019</p>
 * <p>Company: www.ctl.com</p>
 *
 * @author ctl
 * @version 1.1
 * @date 2023-06-07 18:22
 */
@Getter
@Setter
public class Teacher {
    public Integer slary;
    public String name;

    public Teacher withSlary(Integer slary) {
        this.slary = slary;
        return this;
    }

    public Teacher withName(String name) {
        this.name = name;
        return this;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "slary=" + slary +
                ", name='" + name + '\'' +
                '}';
    }
}
